package com.inno.auth.infra.basic.service;


import com.inno.auth.infra.basic.entity.PlannerUsers;

import java.util.List;

/**
 * 用户信息表(PlannerUsers)表服务接口
 *
 * @author makejava
 * @since 2024-11-10 13:33:55
 */
public interface PlannerUsersService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PlannerUsers queryById(Long id);



    /**
     * 新增数据
     *
     * @param plannerUsers 实例对象
     * @return 实例对象
     */
    PlannerUsers insert(PlannerUsers plannerUsers);

    /**
     * 修改数据
     *
     * @param plannerUsers 实例对象
     * @return 实例对象
     */
    PlannerUsers update(PlannerUsers plannerUsers);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    PlannerUsers queryByUsername(PlannerUsers plannerUsers);

    List<PlannerUsers> queryByIdList( List<Long> idList);

    PlannerUsers queryByMobile(String mobile);

    Long queryCount(PlannerUsers users);

    Long queryTodayRegisterCount(PlannerUsers users);

    List<PlannerUsers> queryPage(PlannerUsers users,  int offset, int pageSize);

    PlannerUsers queryByOpenId(String openId);
}
